import common from "@/validator/common";

const name = [
  common.getRequiredRule('专业名'),
  {
    type: 'string',
    min: 2,
    max: 40,
    message: '专业名需在2 - 40个字符之间'
  }
]

const deptId = [
  common.getRequiredRule('所属院系')
]

const schoolSystem = [
  common.getRequiredRule('所属院系')
]

export default {
  insertRules: {
    name,
    deptId,
    schoolSystem
  },
  updateRules: {
    name,
    deptId,
    schoolSystem
  }
}
